<%--
  Created by IntelliJ IDEA.
  User: lhq12
  Date: 2019/12/25
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>充钱</title>
</head>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/flat-ui.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">

    $(function() {
        var msg = '${requestScope.msg}';
        if (msg != ""){
            $("#u1").append("<span style='color:red' >"+msg+"</span>")
        }
    })
</script>
<body>
<div class="container" style="width: 60%">
    <h1>用户充值</h1>
    <form action="addMoney" method="post">
        <img src="upload/${user.img}" style="width: 200px;height: 200px" alt="example-image" class="img-rounded img-responsive">
        <h2>用户:${user.name}</h2>
        <h3>你还剩多少钱:${sessionScope.user.money} &nbsp;RMB</h3>
        <h5 id="u1"></h5>
        <div class="form-group has-success">
            <input id="id" name="id" type="hidden" value="${user.id}">
            <input  id="money" name="money" type="number"  placeholder="请输入充值金额" class="form-control"  />
            <span class="input-icon fui-check-inverted"></span>
        </div>
        <div>
        <input type="submit" value="氪!!" class="btn btn-block btn-lg btn-danger" style="width: 70%;height: 200px;font-size: 135px;display: inline-flex">

        </div>
    </form>
    <a href="index.jsp"><button class="btn-primary" style="width: 10%;height: 40px;font-size: 22px;display: inline-flex">不氪了</button></a>
</div>
</body>
</html>
